Skip to content

Conversation

@mrm9084
Copy link
Member

@mrm9084 mrm9084 commented Nov 21, 2025

Description

Updates the query parm ordering to be alphabetical, to make sure they are consistent across the sdks. This is needed for Azure Front Door support.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI review requested due to automatic review settings November 21, 2025 21:18
@github-actions github-actions bot added the App Configuration Azure.ApplicationModel.Configuration label Nov 21, 2025
Copilot finished reviewing on behalf of mrm9084 November 21, 2025 21:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds query parameter normalization to the Azure App Configuration SDK to support Azure Front Door as a CDN. The implementation converts query parameter keys to lowercase and sorts them alphabetically to ensure consistent URL formatting across SDK implementations.

Key Changes

  • Implemented a new QueryParamPolicy that normalizes query parameters by lowercasing keys and sorting alphabetically
  • Integrated the policy into both sync and async clients as part of the request pipeline
  • Added comprehensive test coverage with 20+ test cases covering various edge cases including special characters, unicode, empty values, and OData parameters

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
azure/appconfiguration/_query_param_policy.py New HTTPPolicy implementation that normalizes query parameters with proper error handling
tests/test_query_param_policy.py Comprehensive test suite covering alphabetical sorting, lowercase conversion, special characters, unicode, empty values, and OData parameters
azure/appconfiguration/_azure_appconfiguration_client.py Integration of QueryParamPolicy into sync client's pipeline
azure/appconfiguration/aio/_azure_appconfiguration_client_async.py Integration of QueryParamPolicy into async client's pipeline
CHANGELOG.md Documentation of the new feature for Azure Front Door support
assets.json Updated test asset tag reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

App Configuration Azure.ApplicationModel.Configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant